<?php

namespace App\Console\Commands;

use App\Models\Account;
use App\Tasks\JinShouFuSubAccountSyncTask;
use Illuminate\Console\Command;

class JinShouFuSubAccountSyncCmd extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'app:jin-shou-fu-sub-account-sync-cmd';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Command description';

    /**
     * Execute the console command.
     */
    public function handle()
    {
        $account = Account::query()->where("plamt","jsf")->first();
        $service = new JinShouFuSubAccountSyncTask($account);
        $service->execute();
    }
}
